import { _decorator, Component, Node } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('NetBase')
export abstract class NetBase extends Component {
    abstract SendData(cmdBuf: Uint8Array): void;
    //链接服务
    abstract ConnectToServer(): void;
    //链接关闭
    abstract CloseSocket(): void;
    //链接错误
    abstract OnWebSocketError(): void;
    //链接成功
    abstract OnWebSocketOpened(): void;
    //链接关闭
    abstract OnWebSokcetClosed(): void;
    //收到
    abstract OnRecvDataCmd(event:any): void;
}


